import request from '@/utils/request'

// 查询日志列表
export function queryBlackLogList(query) {
  return request({
    url: '/logInfoBlack/queryBlackLogList',
    method: 'get',
    params: query
  })
}

export function deleteById(query) {
  return request({
    url: '/logInfoBlack/deleteById',
    method: 'get',
    params: query
  })
}

export function deleteAll() {
  return request({
    url: '/logInfoBlack/deleteAll',
    method: 'get',
    params: {}
  })
}

export function addLogInfo(data) {
  return request({
    url: '/logInfoBlack/updateLogInfoByIp4Black',
    method: 'post',
    data: data
  })
}
